﻿using System.Data.Common;
using System.Data.Odbc;

namespace DataAccess
{
    class OdbcDatabaseDriver : DatabaseDriver
    {
        public override string ParameterPlaceHolder
        {
            get { return "?"; }
        }

        public override void SetParameterType(DbParameter parameter, int type)
        {
            OdbcParameter p = (OdbcParameter)parameter;
            p.OdbcType = (OdbcType)type;
        }
    }
}
